#include "widget.h"
#include "ui_widget.h"
#include <QDebug>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_radioButton_clicked_clicked()
{
    //看4个不同的信号的区别
    qDebug() << "clicked";
}

void Widget::on_radioButton_press_pressed()
{
    qDebug() << "press";
}

void Widget::on_radioButton_release_released()
{
    qDebug() << "release";
}

void Widget::on_radioButton_toggled_toggled(bool checked)
{
    //这个按钮就是在转换的时候才会触发
    qDebug() << "toggled";
}
